import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-09-27
 * Time: 19:13
 */
public class test_1 {
    public static String solve(String s, String t) {
        int sl = s.length();
        int tl = t.length();
        StringBuffer ss=new StringBuffer(s);
        StringBuffer tt=new StringBuffer(t);
        ss.reverse();
        tt.reverse();
        int tmp=0;
        int n=0;
        StringBuffer ret=new StringBuffer();
        while (sl>n||tl>n){
            int num_sl=0;
            int nun_tl=0;
            if (n<sl){
                num_sl=ss.charAt(n)-'0';
            }
            if (n<tl){
                nun_tl=tt.charAt(n)-'0';
            }
            tmp=num_sl+nun_tl+tmp;
            ret.append(tmp%10);
            tmp/=10;
            n++;
        }
        if (tmp!=0){
            ret.append(tmp);
        }
        System.out.println(ret);
        return ret.reverse().toString();
    }

    public static void main(String[] args) {
        System.out.println(solve("145", ""));
    }
}
